package mp.study.demo.config;

import mp.study.demo.bean.User;
import mp.study.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2021/6/20 0:23
 */
@Configuration
public class SystemConfig
{
    @Autowired
    private UserService userService;

    // @PostConstruct
    public void doAdd()
    {
        List<User> list = userService.queryAll();
        System.out.println(list.toString());
    }
}
